import {request} from "./request";

export function tryLogin(obj) {
    return request({
        method: "post",
        url: `router.php?t=login/tryLogin/`,
        data:JSON.stringify(obj)
    })
}

export function logout() {
    return request({
        method: "delete",
        url: `router.php?t=login/logout/`,
    })
}

export function getLoginInfo() {
    return request({
        method: "get",
        url: `router.php?t=login/getLoginInfo/`,
    })
}

